﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CSharpDay03
{
    public class Program
    {
        public static void Main(string[] args)
        {
            Transport transport = new Transport(300, true, 1978, 800);
            Train train = new Train(TrainEngine.electric, 10, 300, false, 2014, 1000);
            Boat boat = new Boat("Wellcraft", 225, 18, 50, false, 1984, 6);
            Automobile auto = new Automobile(4, "Charger", "Dodge", 200, false, 1975, 2);
            Car car = new Car(false, "Sports Car", 4, "GT", "Mustang", 200, true, 1978, 2);
            Motorcycle motor = new Motorcycle(8, true, 2, "Davidson", "Harley", 180, true, 2015, 1);

            //var arr = [];
            int[] arr = new int[10];
            List<int> myList = new List<int>();
            myList.Add(5);
            myList.Add(10);
            myList.Remove(10); //removes the NUMBER 10 from the list, not the index

            List<string> otherList = new List<string>();
            otherList.Add("dog");
            otherList.Add("Cat");
            otherList.Add("bird");
            otherList.Add("snake");
            otherList.Remove("dog");

            for (int i = 0; i < otherList.Count; i++)
            {
                Console.WriteLine(otherList[i]);
            }
            Console.WriteLine("---------------------------------------");
            foreach (var animal in otherList)
            {
                //animal = otherList[i]
                Console.WriteLine(animal);
            }

            Console.ReadLine();
        }
    }
}